﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayVoice : MonoBehaviour
{
    
    void Start()
    {
        LeiXing();

    }
    public void LeiXing()
    {
        if (transform.parent.gameObject.tag.Equals("Lose"))
        {
            ShortVoice.instance.PlayVoice("Lose");
        }
        else
        {
            ShortVoice.instance.PlayVoice("Win");
        }
    }

    // Update is called once per frame
    void Update()
    {
       
    }
}
